package pers.sen.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pers.sen.health.po.Permission;
import pers.sen.health.po.Role;

import java.util.Set;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/11/13 22:23
 * @Description TODO
 */
public interface RoleMapper extends BaseMapper<Role> {
    @Select("select tp.KEYWORD from t_permission tp,t_role_permission trp where tp.ID=trp.PERMISSION_ID and trp.ROLE_ID=#{id}")
    Set<Permission> findPermissionInfoByRId(@Param("id") Integer id);
}
